import requests

class Zzh_login(object):
    @classmethod
    def login(cls,login_json):
        resp = requests.post(
            url="https://dwglc.ischinese.cn/api/user/user/login",
            json=login_json)
        # resp1= resp.json()
        return resp
        # return (resp.json().get("data").get("token"))

if __name__ == '__main__':
    json_data={"data": {"username": None,"password":249229}}
    resp=Zzh_login.login(json_data)
    print(resp)
    print(resp.json())